package day03;

public class PracticeE {
    public static void main(String[] args) {
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~1111~~~~~~~~~~");
        int a=1,b=2;
        int c=a>b?1:2;
        System.out.println(c);
        if (a > b) {
            System.out.println(a);
        }else {
            System.out.println(b);
        }
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~2222~~~~~~~~~~");
        int year=2024;
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println(year+"年是闰年");
        }else {
            System.out.println(year+"年是平年");
        }
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~3333~~~~~~~~~~");
        double score = 90.5;
        if (score >= 90 && score <= 100) {
            System.out.println(score);
        } else if (score>=80) {
            System.out.println(score);
        } else if (score>=60) {
            System.out.println(score);
        } else if (score>=0&&score<60) {
            System.out.println("成绩不及格，成绩为："+score);
        }else {
            System.out.println("成绩不合法");
        }
    }
}
